<template>
	<GlobalHeader :text="t('mainRight.hostOperatingParameters')" xh="CW6250C1360DF7" xlh="2522L000026"
		:hour="allData.right_main?.yfdjljyxsj?.currentValue" :path="`/pages/rhost/rhost?props=${1}`"></GlobalHeader>
	<equipmentmain v-if="props.id == 1"></equipmentmain>
	<wd v-if="props.id == 22" :id="props.id"></wd>
	<yl v-if="props.id == 23" :id ="props.id"></yl> 
	 <pw v-if="props.id == 24" :id ="props.id"></pw> 
	   <cz v-if="props.id == 25" :id ="props.id"></cz> 
</template>

<script setup>
	import {
		ref,
		reactive,
		onMounted,
		onUnmounted,
		watch,
		markRaw,
		inject
	} from 'vue';
	import GlobalHeader from "@/components/layout/GlobalHeader.vue";
	import equipmentmain from "@/components/equipment/equipmentmain.vue";
	import wd from "@/components/equipment/wd.vue"
	import yl from "@/components/equipment/yl.vue"
	import pw from "@/components/equipment/pw.vue"
	import cz from "@/components/equipment/cz.vue"
	import {
		useI18n
	} from 'vue-i18n'; // 导入 useI18n
	const props = defineProps({
		id: Number,
	});
	let allData = inject("allData");
	const {
		t
	} = useI18n(); // 使用 useI18n 获取 t 方法
</script>

<style scoped></style>